/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PackageMaker.Config;

import java.io.File;

/**
 *
 * @author wcss
 */
public class UpdateModel
{
    public static UpdateModel load(String path) throws Exception {
        if (new File(path).exists()) {
            return (UpdateModel) ObjectToXMLUtil.loadObjectFromXml(path);
        } else {
            return null;
        }
    }

    public static void save(UpdateModel entry, String path) throws Exception {
        ObjectToXMLUtil.saveObjectToXml(entry, path);
    }
    /**
     * 更新列表URL
     */
    public String updateListUrl="";
    /**
     * 当前更新号
     */
    public int currentVersion=0;
    /**
     * 软件名称
     */
    public String softName="";
    /**
     * 软件首页
     */
    public String homepage="";
    /**
     * 维护者信息
     */
    public String maintainer="";
    /**
     * 更新日志URL
     */
    public String updateInfoUrl="";
    /**
     * 程序启动脚本
     */
    public String appStartupScriptName="";
    
    /**
     * 工作目录
     */
    public String softwareWorkspace = "";
}
